package com.stylefeng.guns.modular.system.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 流程表

 * </p>
 *
 * @author chengshuai
 * @since 2018-10-12
 */
@TableName("ex_order_flow")
public class ExOrderFlow extends Model<ExOrderFlow> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;
    /**
     * 订单单号
     */
    @TableField("order_sn")
    private String orderSn;
    /**
     * 流程类型（1减红包、2退单品、3已出库退单）
     */
    @TableField("flow_type")
    private Integer flowType;
    /**
     * 流程1 （部门id）
     */
    @TableField("sys_dept_id1")
    private Integer sysDeptId1;
    /**
     * 流程2（部门id）
     */
    @TableField("sys_dept_id2")
    private Integer sysDeptId2;
    /**
     * 流程3（部门id）
     */
    @TableField("sys_dept_id3")
    private Integer sysDeptId3;
    /**
     * 流程4（部门id）、以0结尾、查询到0本流程结束
     */
    @TableField("sys_dept_id4")
    private Integer sysDeptId4;
    /**
     * 流程5（部门id）
     */
    @TableField("sys_dept_id5")
    private String sysDeptId5;
    /**
     * 流程步骤标识
     */
    @TableField("step_sign")
    private Integer stepSign;
    /**
     * 创建时间
     */
    private Date createtime;
    private String operato;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Integer getFlowType() {
        return flowType;
    }

    public void setFlowType(Integer flowType) {
        this.flowType = flowType;
    }

    public Integer getSysDeptId1() {
        return sysDeptId1;
    }

    public void setSysDeptId1(Integer sysDeptId1) {
        this.sysDeptId1 = sysDeptId1;
    }

    public Integer getSysDeptId2() {
        return sysDeptId2;
    }

    public void setSysDeptId2(Integer sysDeptId2) {
        this.sysDeptId2 = sysDeptId2;
    }

    public Integer getSysDeptId3() {
        return sysDeptId3;
    }

    public void setSysDeptId3(Integer sysDeptId3) {
        this.sysDeptId3 = sysDeptId3;
    }

    public Integer getSysDeptId4() {
        return sysDeptId4;
    }

    public void setSysDeptId4(Integer sysDeptId4) {
        this.sysDeptId4 = sysDeptId4;
    }

    public String getSysDeptId5() {
        return sysDeptId5;
    }

    public void setSysDeptId5(String sysDeptId5) {
        this.sysDeptId5 = sysDeptId5;
    }

    public Integer getStepSign() {
        return stepSign;
    }

    public void setStepSign(Integer stepSign) {
        this.stepSign = stepSign;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getOperato() {
        return operato;
    }

    public void setOperato(String operato) {
        this.operato = operato;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ExOrderFlow{" +
        "id=" + id +
        ", orderSn=" + orderSn +
        ", flowType=" + flowType +
        ", sysDeptId1=" + sysDeptId1 +
        ", sysDeptId2=" + sysDeptId2 +
        ", sysDeptId3=" + sysDeptId3 +
        ", sysDeptId4=" + sysDeptId4 +
        ", sysDeptId5=" + sysDeptId5 +
        ", stepSign=" + stepSign +
        ", createtime=" + createtime +
        ", operato=" + operato +
        "}";
    }
}
